package com.sw.paisong.vo;

import com.sw.paisong.config.AppConfig;
import com.sw.paisong.entity.ManagerEntity;

/**
 * @author Administrator
 *
 *         用于包装登录用户
 */
public class SessionVO {

	private String id;
	private String account;
	private String nickname;

	public SessionVO(AppConfig config) {
		this.id = config.getSuperId();
		this.account = config.getSuperAccount();
		this.nickname = config.getSuperNickname();
	}

	public SessionVO(ManagerEntity manager) {
		this.id = manager.getId();
		this.account = manager.getAccount();
		this.nickname = manager.getNickname();
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

}
